<template>
  <div>
    从store来的数据{{isFirstPage}}
    <div>下面是来自vux的组件</div>
    <datetime-view v-model="value1" ref="datetime" :format="format"></datetime-view>
  </div>
</template>

<script>
  import {
    DatetimeView
  } from 'vux'
  import {
    mapAction,
    mapGetters
  } from 'vuex'
  export default {
    computed: {
      ...mapGetters(['isFirstPage'])
    },
    mounted() {},
    data() {
      return {
        value1: '2017-10-11',
        format: 'YYYY-MM-DD'
      }
    },
    components: {
      DatetimeView
    }
  }
</script>